.class public Lrexsee/device/RexseeSpecialKey;
.super Ljava/lang/Object;
.source "RexseeSpecialKey.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "SpecialKey"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 0
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 23
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    iput-object p1, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    .line 25
    return-void
.end method

.method static synthetic access$0(Lrexsee/device/RexseeSpecialKey;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 22
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public enableBackKeyListener(Z)V
    .locals 1
    .param p1, "enable"    # Z

    .prologue
    .line 29
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    iput-boolean p1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->backEnabled:Z

    .line 30
    return-void
.end method

.method public enableFocusKeyListener(Z)V
    .locals 1
    .param p1, "enable"    # Z

    .prologue
    .line 101
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    iput-boolean p1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->focusEnabled:Z

    .line 102
    return-void
.end method

.method public enableMenuKeyListener(Z)V
    .locals 1
    .param p1, "enable"    # Z

    .prologue
    .line 53
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    iput-boolean p1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->menuEnabled:Z

    .line 54
    return-void
.end method

.method public enableSearchKeyListener(Z)V
    .locals 1
    .param p1, "enable"    # Z

    .prologue
    .line 77
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    iput-boolean p1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->searchEnabled:Z

    .line 78
    return-void
.end method

.method public enableVolumeKeyListener(Z)V
    .locals 1
    .param p1, "enable"    # Z

    .prologue
    .line 125
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    iput-boolean p1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->volumeEnabled:Z

    .line 126
    return-void
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 15
    new-instance v0, Lrexsee/device/RexseeSpecialKey;

    invoke-direct {v0, p1}, Lrexsee/device/RexseeSpecialKey;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "SpecialKey"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 19
    new-instance v0, Lrexsee/device/RexseeSpecialKey;

    invoke-direct {v0, p1}, Lrexsee/device/RexseeSpecialKey;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public setBackKeyListener()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 32
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setBackKeyListener(Ljava/lang/String;)V

    .line 33
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setBackKeyUpListener(Ljava/lang/String;)V

    .line 34
    return-void
.end method

.method public setBackKeyListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 36
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->back_DownRunnable:Ljava/lang/Runnable;

    .line 42
    return-void

    .line 36
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$1;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$1;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setBackKeyUpListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 44
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->back_UpRunnable:Ljava/lang/Runnable;

    .line 50
    return-void

    .line 44
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$2;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$2;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setFocusKeyListener()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 104
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setFocusKeyListener(Ljava/lang/String;)V

    .line 105
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setFocusKeyUpListener(Ljava/lang/String;)V

    .line 106
    return-void
.end method

.method public setFocusKeyListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 108
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->focus_DownRunnable:Ljava/lang/Runnable;

    .line 114
    return-void

    .line 108
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$7;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$7;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setFocusKeyUpListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 116
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->focus_UpRunnable:Ljava/lang/Runnable;

    .line 122
    return-void

    .line 116
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$8;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$8;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setMenuKeyListener()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 56
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setMenuKeyListener(Ljava/lang/String;)V

    .line 57
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setMenuKeyUpListener(Ljava/lang/String;)V

    .line 58
    return-void
.end method

.method public setMenuKeyListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 60
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->menu_DownRunnable:Ljava/lang/Runnable;

    .line 66
    return-void

    .line 60
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$3;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$3;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setMenuKeyUpListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 68
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->menu_UpRunnable:Ljava/lang/Runnable;

    .line 74
    return-void

    .line 68
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$4;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$4;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setSearchKeyListener()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 80
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setSearchKeyListener(Ljava/lang/String;)V

    .line 81
    invoke-virtual {p0, v0}, Lrexsee/device/RexseeSpecialKey;->setSearchKeyUpListener(Ljava/lang/String;)V

    .line 82
    return-void
.end method

.method public setSearchKeyListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 84
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->search_DownRunnable:Ljava/lang/Runnable;

    .line 90
    return-void

    .line 84
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$5;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$5;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setSearchKeyUpListener(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 92
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 v1, 0x0

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->search_UpRunnable:Ljava/lang/Runnable;

    .line 98
    return-void

    .line 92
    :cond_1
    new-instance v1, Lrexsee/device/RexseeSpecialKey$6;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$6;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setVolumeKeyListener()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 128
    invoke-virtual {p0, v0, v0}, Lrexsee/device/RexseeSpecialKey;->setVolumeKeyListener(Ljava/lang/String;Ljava/lang/String;)V

    .line 129
    invoke-virtual {p0, v0, v0}, Lrexsee/device/RexseeSpecialKey;->setVolumeKeyUpListener(Ljava/lang/String;Ljava/lang/String;)V

    .line 130
    return-void
.end method

.method public setVolumeKeyListener(Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .param p1, "volumeUpUrl"    # Ljava/lang/String;
    .param p2, "volumeDownUrl"    # Ljava/lang/String;

    .prologue
    const/4 v2, 0x0

    const-string v3, ""

    .line 132
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    :cond_0
    move-object v1, v2

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->volumeUp_DownRunnable:Ljava/lang/Runnable;

    .line 138
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p2, :cond_1

    const-string v1, ""

    invoke-virtual {p2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    :cond_1
    move-object v1, v2

    :goto_1
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->volumeDown_DownRunnable:Ljava/lang/Runnable;

    .line 144
    return-void

    .line 132
    :cond_2
    new-instance v1, Lrexsee/device/RexseeSpecialKey$9;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$9;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0

    .line 138
    :cond_3
    new-instance v1, Lrexsee/device/RexseeSpecialKey$10;

    invoke-direct {v1, p0, p2}, Lrexsee/device/RexseeSpecialKey$10;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_1
.end method

.method public setVolumeKeyUpListener(Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .param p1, "volumnUpUrl"    # Ljava/lang/String;
    .param p2, "volumeDownUrl"    # Ljava/lang/String;

    .prologue
    const/4 v2, 0x0

    const-string v3, ""

    .line 146
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    :cond_0
    move-object v1, v2

    :goto_0
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->volumeUp_UpRunnable:Ljava/lang/Runnable;

    .line 152
    iget-object v0, p0, Lrexsee/device/RexseeSpecialKey;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->specialKeyListener:Lrexsee/core/browser/clazz/SpecialKeyListener;

    if-eqz p2, :cond_1

    const-string v1, ""

    invoke-virtual {p2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    :cond_1
    move-object v1, v2

    :goto_1
    iput-object v1, v0, Lrexsee/core/browser/clazz/SpecialKeyListener;->volumeDown_UpRunnable:Ljava/lang/Runnable;

    .line 158
    return-void

    .line 146
    :cond_2
    new-instance v1, Lrexsee/device/RexseeSpecialKey$11;

    invoke-direct {v1, p0, p1}, Lrexsee/device/RexseeSpecialKey$11;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_0

    .line 152
    :cond_3
    new-instance v1, Lrexsee/device/RexseeSpecialKey$12;

    invoke-direct {v1, p0, p2}, Lrexsee/device/RexseeSpecialKey$12;-><init>(Lrexsee/device/RexseeSpecialKey;Ljava/lang/String;)V

    goto :goto_1
.end method
